<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{$seo[keywords]}" />
<meta name="description" content="{$seo[description]}" />
<title>{$page_title}</title>
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/global.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/style.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/style.head_{$mymps_global[head_style]}.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/group.head_{$mymps_global[head_style]}.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/plugin/group/template/style.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/pagination.css" />
<script src="{$mymps_global[SiteUrl]}/template/global/noerr.js" type="text/javascript"></script>
<script src="{$mymps_global[SiteUrl]}/template/default/js/global.js" type="text/javascript"></script>
<script src="{$mymps_global[SiteUrl]}/template/default/js/jquery.min.js" type="text/javascript"></script>
	<script src="{$mymps_global[SiteUrl]}/template/global/lang.js" type="text/javascript"></script>
	<script >$(document).ready(function () {zh_tran('t');})</script>
</head>

<body class="{$mymps_global[cfg_tpl_dir]} {$mymps_global[screen_search]} bodybg{$mymps_global[cfg_tpl_dir]}{$mymps_global[bodybg]}">
	{mytemplate inc_head}
	<div class="body1000">
		<div class="clear"></div>
		<div class="location">{$location}</div>
		<div class="clear"></div>
		<div class="indexcontent">
			<div class="cleft">
				<div class="categoryclass">
					<li id="all" {if !$cate_id}class="current"{/if}><a href="group.php">全部活动</a></li>
                    {loop $group_class $class}
					<li {if $cate_id == $class[cate_id]}class="current"{/if}><a href="{$class[cate_uri]}">{$class[cate_name]}</a></li>
					{/loop}
				</div>
				<div class="clearfix"></div>
                {if $area_class}
				<div class="area"><span>按区域查找：</span>
                	{loop $area_class $v}
					<a href="{$v[uri]}" {if $v[select] ==1}class="current"{/if}>{$v[areaname]}</a> 
					{/loop}
				</div>
				<div class="clearfix"></div>
				{/if}
				<div class="listgroup">
                	{php $i=1;}
                    {loop $list $v}
					<div class="list {if $i%2==0}defaultbg{else}otherbg{/if}">
						<div class="preimg"><img src="{$mymps_global[SiteUrl]}{$v[pre_picture]}"></div>
						<div class="middle">
							<div class="title"><span class="ttitle"><a href="{$v[uri]}" target="_blank" >{$v[gname]}</a></span><span class="number">活动编号：{$v[groupid]}</span></div>
							<div class="introduction">{echo cutstr($v[des],160)}</div>
							<div class="subintro"><div class="floatleft">
							<button class="hdxq" value="活动详情" onclick="window.open('{$v[uri]}')"></button> 
							{if $v[commenturl]}<button value="参与讨论" class="cytl" onclick="window.open('{$v[commenturl]}')"></button>{/if}
							</div> <div class="floatright"><span class="zz">本站组织</span> <span class="zt">状态：{$glevel[$v[glevel]]}</span> <span class="enddate">截止：{echo GetTime($v[enddate],'y-m-d')}</span></div></div>
						</div>
						<div class="signin">
							<div class="ybm">{$v[signintotal]}</div>
							<div class="wybm"></div>
							<div class="bmjr"><button class="bmjr" value="报名加入" onclick="window.open('{$v[uri]}#signin')"></button></div>
						</div>
					</div>
                    {php $i++;}
					{/loop}
					<div class="pagination">{$page_view}</div>
				</div>
			</div>
			<div class="cright">
				<div class="box">
					<div class="hd">热门团购活动</div>
					<div class="bd">
						<div class="hotbdbg">
						<ul>
                        	{loop $hotgroup $v}
							<li><a href="{$v[uri]}" target="_blank" title="{$v[gname]}">{echo cutstr($v[gname],18)}</a></li>
							{/loop}
						</ul>
						</div>
					</div>
				</div>
				<div class="clear"></div>
				<div class="controlgroup">
					<div class="button"><button value="发起团购" class="fqtg" onclick="window.open('{$mymps_global[SiteUrl]}/member/index.php?m=group&ac=detail')"></button> <button value="管理团购" class="gltg" onclick="window.open('{$mymps_global[SiteUrl]}/member/index.php?m=group')"></button>
					</div>
					<div class="clearfix"></div>
					<div class="tel">
						合作热线：<span>{$mymps_global[SiteTel]}</span>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		{mytemplate inc_foot}
	</div>
</div>
</body>
</html>